<?php

/**
 * ajaxtester actions.
 *
 * @package    gestdent
 * @subpackage ajaxtester
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class ajaxtesterActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    //$this->forward('default', 'module');
      $this->getUser()->setAjaxTester();
      
  }

  public function executeMirar(sfWebRequest $request)
  {
      
  }

  public function executeVer(sfWebRequest $request)
  {
      
  }

  public function executeGuardar1(sfWebRequest $request)
  {
      $this->getUser()->setAjaxVar1();

      $VarReserva = new GestdentReserva();

      $VarReserva ->setFecha('2011-07-01');

      $this->getUser()->setReserva($VarReserva);

  }

  public function executeGuardar2(sfWebRequest $request)
  {
      $this->getUser()->setAjaxVar2();
  }

}
